#include <stdio.h>


int main()
{
    cudaDeviceProp prop;
    cudaGetDeviceProperties(&prop, 0);
    printf("The maximum threads in a thread grid is (%d, %d, %d)!\n", 
            prop.maxGridSize[0], prop.maxGridSize[1], prop.maxGridSize[2]);
    printf("The maximum threads in a thread block is %d in total!\n", prop.maxThreadsPerBlock);
    printf("The maximum threads in a thread block is (%d, %d, %d)!\n", 
           prop.maxThreadsDim[0], prop.maxThreadsDim[1], prop.maxThreadsDim[2]);
    printf("The maximum shared memory of a thread block is %d KB!\n", prop.sharedMemPerBlock / 1024);
    printf("The maximum register of a thread block is %d!\n", prop.regsPerBlock);

    return 0;
}
